package cn.zhaozhiqi.remote.api;

import cn.zhaozhiqi.constants.Constants;
import cn.zhaozhiqi.remote.dto.DriverPointDto;
import cn.zhaozhiqi.remote.fallback.BigDataFeignClientFallbackFactory;
import cn.zhaozhiqi.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = Constants.Remote.SERVICE_BIGDATA,fallbackFactory = BigDataFeignClientFallbackFactory.class)
public interface IBigDataFeignClient {


    /**
     * 查询bigdata内的位置坐标
     * @param orderNo
     * @return
     */
    @PostMapping("/bigdata/ComputedRealMile/{orderNo}")
    JSONResult<List<DriverPointDto>> ComputedRealMile(@PathVariable("orderNo") String orderNo);
}
